/*
 * @Author: Starfish_DL
 * @Date: 2020-09-30 19:41:35
 * @LastEditors: Starfish_DL
 * @LastEditTime: 2020-09-30 19:51:02
 * @CurrentVersion: 1.0
 * @Description: 
 */

//tag 作业第五题
public class Point {
    public int x;
    public int y;
    public int z;

    public Point(int a,int b,int c) {
        this.x=a;
        this.y=b;
        this.z=c;
    }

    public double distance() {
        double result;
        result=Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z);
        return result;
    }
}
